<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
    tinyMCE.init({
        mode : "textareas",
        theme : "advanced",
        skin : "default",
        width : "850",
        height : "210",
       
        theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,search,replace,|,bullist,numlist,|,undo,redo,|,sub,sup,|,formatselect,fontselect,fontsizeselect,|,code",
        
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : false
    });
</script>

<div class="span9">
    <ul class="breadcrumb">
        <li><?php echo CHtml::link('Админка ', array('default/index')); ?>  <span class="divider">/</span></li>
           <li> <?php echo CHtml::link(' Страница ', array('default/page'));?>  <span class="divider">/</span></li>
            <?php if(isset($_GET['id'])) : ?>
              <li class="active">Изменить</li>
            <?php else : ?>
             <li class="active">Добавить</li>
            <?php endif; ?>    
    </ul>
    <hr/>
    <?php echo CHtml::errorSummary($model, 'Пожалуйста исправьте следующие ошибки:'); ?>

    <?php echo CHtml::beginForm(); ?>

        <?php echo CHtml::activeLabel($model, 'content'); ?>
        <?php echo CHtml::activeTextArea($model, 'content', array('class'=>'activeTextArea', 'placeholder'=>$model->getAttributeLabel('content'))); ?>

        <?php echo CHtml::activeLabel($model, 'pageUrl'); ?>
        <?php echo CHtml::activeTextField($model, 'pageUrl', array('class'=>'activeTextField', 'placeholder'=>$model->getAttributeLabel('pageUrl'))); ?> 

        <?php echo CHtml::activeLabel($model, 'title'); ?>
        <?php echo CHtml::activeTextField($model, 'title', array('class'=>'activeTextField', 'placeholder'=>$model->getAttributeLabel('title'))); ?>
    
        <?php echo CHtml::activeLabel($model, 'keywords'); ?>
        <?php echo CHtml::activeTextField($model, 'keywords', array('class'=>'activeTextField', 'placeholder'=>$model->getAttributeLabel('keywords'))); ?>
        
        <?php echo CHtml::activeLabel($model, 'simple'); ?>
        <?php echo CHtml::activeDropDownList($model, 'simple', array('0'=>'Без баннеров', '1'=>'С баннерами')); ?>       

        <br/><?php echo CHtml::submitButton('Подтвердить', array('class'=>'btn btn-large btn-primary')); ?>

    <?php echo CHtml::endForm(); ?> 
</div>        